home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
COMAL
/
T-COMAL Today
/
(k)t2.d64
/
meeting.l
< prev
next >
Wrap
Text File
|
2007-02-28
|
527b
|
23 lines
0010 //DELETE "0:MEETING1-3"
0020 // MADISON COMAL USERS GROUP
0030 //SAVE "0:MEETING1-5"
0040 //2 RANDOM LETTERS - WATCH FOR REPEATS
0050 MAX:=100
0060 DIM AR$(1:2,1:MAX) OF 1
0070 DIM C$ OF 1, D$ OF 1
0080 A:=ORD("A"); Z:=ORD("Z")
0090 FOR X:=1 TO MAX DO
0100 C$:=CHR$(RND(A,Z))
0110 D$:=CHR$(RND(A,Z))
0120 AR$(1,X):=C$; AR$(2,X):=D$
0130 PRINT C$;D$
0140 CUR:=X
0150 WHILE CUR>1 DO
0160 CUR:-1
0170 IF C$=AR$(1,CUR) AND D$=AR$(2,CUR) THEN
0180 PRINT "REPEATED SEQUENCE"
0190 ENDIF
0200 ENDWHILE
0210 ENDFOR X
0220 END